<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NumCpp: Coordinate.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">NumCpp
   &#160;<span id="projectnumber">2.3.1</span>
   </div>
   <div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_coordinate_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Coordinate.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_coordinate_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_dec_8hpp.html">NumCpp/Coordinates/Dec.hpp</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_r_a_8hpp.html">NumCpp/Coordinates/RA.hpp</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_error_8hpp.html">NumCpp/Core/Internal/Error.hpp</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_types_8hpp.html">NumCpp/Core/Types.hpp</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="deg2rad_8hpp.html">NumCpp/Functions/deg2rad.hpp</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="dot_8hpp.html">NumCpp/Functions/dot.hpp</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="rad2deg_8hpp.html">NumCpp/Functions/rad2deg.hpp</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_nd_array_8hpp.html">NumCpp/NdArray.hpp</a>&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sqr_8hpp.html">NumCpp/Utils/sqr.hpp</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;cmath&gt;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="namespacenc.html">   44</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacenc.html">nc</a></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="namespacenc_1_1coordinates.html">   46</a></span>&#160;    <span class="keyword">namespace </span>coordinates</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="comment">//================================================================================</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html">   50</a></span>&#160;<span class="comment"></span>        <span class="keyword">class </span><a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a0f541169a4c318a5cf4fd0a50a4c2013">Coordinate</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a983a167d97af973947f76474ab299ab8">   64</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a983a167d97af973947f76474ab299ab8">Coordinate</a>(<span class="keywordtype">double</span> inRaDegrees, <span class="keywordtype">double</span> inDecDegrees) :</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                ra_(inRaDegrees),</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                dec_(inDecDegrees)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                polarToCartesian();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a68eafc66dfeb8551fa7d8960f116be83">   82</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a68eafc66dfeb8551fa7d8960f116be83">Coordinate</a>(<a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inRaHours, <a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inRaMinutes, <span class="keywordtype">double</span> inRaSeconds, <a class="code" href="namespacenc_1_1coordinates.html#a07a05f0462e5f74f05cbd04664c4ca94">Sign</a> inSign,</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                <a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inDecDegreesWhole, <a class="code" href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">uint8</a> inDecMinutes, <span class="keywordtype">double</span> inDecSeconds)   :</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                ra_(inRaHours, inRaMinutes, inRaSeconds),</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                dec_(inSign, inDecDegreesWhole, inDecMinutes, inDecSeconds)</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                polarToCartesian();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            }</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a7cf9e8138023ced7cfcb071299018fd5">   96</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a7cf9e8138023ced7cfcb071299018fd5">Coordinate</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_r_a.html">RA</a>&amp; inRA, <span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_dec.html">Dec</a>&amp; inDec) noexcept :</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                ra_(inRA),</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                dec_(inDec)</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            {</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                polarToCartesian();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#aa023b8b0e74159909e99aabcf778c57f">  110</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#aa023b8b0e74159909e99aabcf778c57f">Coordinate</a>(<span class="keywordtype">double</span> inX, <span class="keywordtype">double</span> inY, <span class="keywordtype">double</span> inZ) noexcept :</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                x_(inX),</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                y_(inY),</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                z_(inZ)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                cartesianToPolar();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a35b32fa280c920d0b528472f7726a03d">  123</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a35b32fa280c920d0b528472f7726a03d">Coordinate</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inCartesianVector)</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                <span class="keywordflow">if</span> (inCartesianVector.<a class="code" href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">size</a>() != 3)</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                    <a class="code" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;NdArray input must be of length 3.&quot;</span>);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                }</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                x_ = inCartesianVector[0];</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                y_ = inCartesianVector[1];</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                z_ = inCartesianVector[2];</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                cartesianToPolar();</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            }</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#ab5502c231ff400b90fc9ede39a524eed">  142</a></span>&#160;<span class="comment"></span>            <span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_dec.html">Dec</a>&amp; <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#ab5502c231ff400b90fc9ede39a524eed">dec</a>() const noexcept </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                <span class="keywordflow">return</span> dec_;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;            }</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#abf447494a1d0a769af81aeab79041e5b">  152</a></span>&#160;<span class="comment"></span>            <span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_r_a.html">RA</a>&amp; <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#abf447494a1d0a769af81aeab79041e5b">ra</a>() const noexcept </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                <span class="keywordflow">return</span> ra_;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            }</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#aded7d56f04931cfbb07488d45d6bfce5">  162</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#aded7d56f04931cfbb07488d45d6bfce5">x</a>() const noexcept </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                <span class="keywordflow">return</span> x_;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a624e354f60ca0822c5a60e9ee6432bc6">  172</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a624e354f60ca0822c5a60e9ee6432bc6">y</a>() const noexcept </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            {</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;                <span class="keywordflow">return</span> y_;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;            }</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160; </div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a21614cb1e2513d0d8cb553ccb035986e">  182</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a21614cb1e2513d0d8cb553ccb035986e">z</a>() const noexcept </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                <span class="keywordflow">return</span> z_;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">  192</a></span>&#160;<span class="comment"></span>            <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">xyz</a>()<span class="keyword"> const </span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a> out = { x_, y_, z_ };</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a9fd37a2cb2c3b45aee933e4e5f95d074">  205</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a9fd37a2cb2c3b45aee933e4e5f95d074">degreeSeperation</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a>&amp; inOtherCoordinate)<span class="keyword"> const </span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                <span class="keywordflow">return</span> <a class="code" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a169974783c87c9bbc89ccb4ea2ea4123">radianSeperation</a>(inOtherCoordinate));</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;            }</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a223ae10750fed3706997220e76f25c0d">  218</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a223ae10750fed3706997220e76f25c0d">degreeSeperation</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inVector)<span class="keyword"> const</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                <span class="keywordflow">return</span> <a class="code" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a169974783c87c9bbc89ccb4ea2ea4123">radianSeperation</a>(inVector));</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a169974783c87c9bbc89ccb4ea2ea4123">  230</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a169974783c87c9bbc89ccb4ea2ea4123">radianSeperation</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a>&amp; inOtherCoordinate)<span class="keyword"> const </span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                <span class="keywordflow">return</span> std::acos(<a class="code" href="namespacenc.html#a2c9414f356ae2025a7cde3a192d6d67d">dot</a>(<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">xyz</a>(), inOtherCoordinate.<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">xyz</a>()).<a class="code" href="classnc_1_1_nd_array.html#abec76b8f271e07fa07cc2f88fed676fa">item</a>());</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            }</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#ae01f4143ae771a0f8bccefc4bba78b86">  243</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">double</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#ae01f4143ae771a0f8bccefc4bba78b86">radianSeperation</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1_nd_array.html">NdArray&lt;double&gt;</a>&amp; inVector)<span class="keyword"> const</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                <span class="keywordflow">if</span> (inVector.<a class="code" href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">size</a>() != 3)</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                    <a class="code" href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a>(<span class="stringliteral">&quot;input vector must be of length 3.&quot;</span>);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                <span class="keywordflow">return</span> std::acos(<a class="code" href="namespacenc.html#a2c9414f356ae2025a7cde3a192d6d67d">dot</a>(<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">xyz</a>(), inVector.<a class="code" href="classnc_1_1_nd_array.html#a22ba05b8e537c008a2143396b5995551">flatten</a>()).<a class="code" href="classnc_1_1_nd_array.html#abec76b8f271e07fa07cc2f88fed676fa">item</a>());</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a04a60dd7bc2ef5be41c8006e2797997f">  258</a></span>&#160;<span class="comment"></span>            std::string <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a04a60dd7bc2ef5be41c8006e2797997f">str</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                std::string returnStr;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                returnStr = ra_.<a class="code" href="classnc_1_1coordinates_1_1_r_a.html#a37824a93eb9e0a02237d4e654040761b">str</a>();</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                returnStr += dec_.<a class="code" href="classnc_1_1coordinates_1_1_dec.html#a91ddbec1fadfdcc049930dc439da4608">str</a>();</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                returnStr += <span class="stringliteral">&quot;Cartesian = &quot;</span> + <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">xyz</a>().<a class="code" href="classnc_1_1_nd_array.html#aa44f94cc8d02a56636223686f30d84f1">str</a>();</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                <span class="keywordflow">return</span> returnStr;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;            }</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#afb451d6e6c10d1f6cacd98bea67850a2">  270</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#afb451d6e6c10d1f6cacd98bea67850a2">print</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="keyword">            </span>{</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;                std::cout &lt;&lt; *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;            }</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a96255907cf1af2c416c7dbe34e96b0d5">  282</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">bool</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a96255907cf1af2c416c7dbe34e96b0d5">operator==</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a>&amp; inRhs) <span class="keyword">const</span> noexcept</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <span class="keywordflow">return</span> ra_ == inRhs.ra_ &amp;&amp; dec_ == inRhs.dec_;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            }</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160; </div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#a8d139bb6b4d2d315d32d6fa818dab93d">  294</a></span>&#160;<span class="comment"></span>            <span class="keywordtype">bool</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a8d139bb6b4d2d315d32d6fa818dab93d">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a>&amp; inRhs) <span class="keyword">const</span> noexcept</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;            {</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == inRhs);</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;            }</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160; </div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="classnc_1_1coordinates_1_1_coordinate.html#aa9e34ee6b7a8425e6af5a715935a4251">  307</a></span>&#160;<span class="comment"></span>            <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#aa9e34ee6b7a8425e6af5a715935a4251">operator&lt;&lt;</a>(std::ostream&amp; inStream, <span class="keyword">const</span> <a class="code" href="classnc_1_1coordinates_1_1_coordinate.html">Coordinate</a>&amp; inCoord)</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            {</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                inStream &lt;&lt; inCoord.<a class="code" href="classnc_1_1coordinates_1_1_coordinate.html#a04a60dd7bc2ef5be41c8006e2797997f">str</a>();</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;                <span class="keywordflow">return</span> inStream;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;            }</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            <span class="comment">//====================================Attributes==============================</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            <a class="code" href="classnc_1_1coordinates_1_1_r_a.html">RA</a>      ra_{};</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            Dec     dec_{};</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            <span class="keywordtype">double</span>  x_{ 1.0 };</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;            <span class="keywordtype">double</span>  y_{ 0.0 };</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            <span class="keywordtype">double</span>  z_{ 0.0 };</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; </div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> cartesianToPolar() noexcept</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;            {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;                <span class="keywordtype">double</span> degreesRa = <a class="code" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(std::atan2(y_, x_));</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                <span class="keywordflow">if</span> (degreesRa &lt; 0)</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;                    degreesRa += 360;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                }</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                ra_ = RA(degreesRa);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160; </div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> r = <a class="code" href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">std::sqrt</a>(<a class="code" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(x_) + <a class="code" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(y_) + <a class="code" href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">utils::sqr</a>(z_));</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> degreesDec = <a class="code" href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">rad2deg</a>(std::asin(z_ / r));</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                dec_ = Dec(degreesDec);</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;            }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;            <span class="comment">//============================================================================</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;<span class="comment"></span>            <span class="keywordtype">void</span> polarToCartesian() noexcept</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;            {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> raRadians = <a class="code" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(ra_.<a class="code" href="classnc_1_1coordinates_1_1_r_a.html#aaf73bcb5e2afd0e075c452148f67a3bd">degrees</a>());</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> decRadians = <a class="code" href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">deg2rad</a>(dec_.<a class="code" href="classnc_1_1coordinates_1_1_dec.html#ad2e47ff7298e1b88bb1b77940c241c8f">degrees</a>());</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160; </div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                x_ = <a class="code" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(raRadians) * <a class="code" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(decRadians);</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                y_ = <a class="code" href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">std::sin</a>(raRadians) * <a class="code" href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">std::cos</a>(decRadians);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                z_ = <a class="code" href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">std::sin</a>(decRadians);</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        };</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    } <span class="comment">// namespace coordinates</span></div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;} <span class="comment">// namespace nc</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a223ae10750fed3706997220e76f25c0d"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a223ae10750fed3706997220e76f25c0d">nc::coordinates::Coordinate::degreeSeperation</a></div><div class="ttdeci">double degreeSeperation(const NdArray&lt; double &gt; &amp;inVector) const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:218</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_abec76b8f271e07fa07cc2f88fed676fa"><div class="ttname"><a href="classnc_1_1_nd_array.html#abec76b8f271e07fa07cc2f88fed676fa">nc::NdArray::item</a></div><div class="ttdeci">value_type item() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:2957</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a9fd37a2cb2c3b45aee933e4e5f95d074"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a9fd37a2cb2c3b45aee933e4e5f95d074">nc::coordinates::Coordinate::degreeSeperation</a></div><div class="ttdeci">double degreeSeperation(const Coordinate &amp;inOtherCoordinate) const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:205</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_ab5502c231ff400b90fc9ede39a524eed"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#ab5502c231ff400b90fc9ede39a524eed">nc::coordinates::Coordinate::dec</a></div><div class="ttdeci">const Dec &amp; dec() const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:142</div></div>
<div class="ttc" id="adeg2rad_8hpp_html"><div class="ttname"><a href="deg2rad_8hpp.html">deg2rad.hpp</a></div></div>
<div class="ttc" id="a_error_8hpp_html"><div class="ttname"><a href="_error_8hpp.html">Error.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a624e354f60ca0822c5a60e9ee6432bc6"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a624e354f60ca0822c5a60e9ee6432bc6">nc::coordinates::Coordinate::y</a></div><div class="ttdeci">double y() const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:172</div></div>
<div class="ttc" id="a_dec_8hpp_html"><div class="ttname"><a href="_dec_8hpp.html">Dec.hpp</a></div></div>
<div class="ttc" id="anamespacenc_html_a941a5a1ffb61387495a6f23dc4036287"><div class="ttname"><a href="namespacenc.html#a941a5a1ffb61387495a6f23dc4036287">nc::sqrt</a></div><div class="ttdeci">auto sqrt(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqrt.hpp:50</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a04a60dd7bc2ef5be41c8006e2797997f"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a04a60dd7bc2ef5be41c8006e2797997f">nc::coordinates::Coordinate::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:258</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_r_a_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1_r_a.html">nc::coordinates::RA</a></div><div class="ttdoc">Holds a right ascension object.</div><div class="ttdef"><b>Definition:</b> RA.hpp:46</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_abf447494a1d0a769af81aeab79041e5b"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#abf447494a1d0a769af81aeab79041e5b">nc::coordinates::Coordinate::ra</a></div><div class="ttdeci">const RA &amp; ra() const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:152</div></div>
<div class="ttc" id="anamespacenc_html_a9ba5a0aa26753a185985b8273fb9062d"><div class="ttname"><a href="namespacenc.html#a9ba5a0aa26753a185985b8273fb9062d">nc::uint8</a></div><div class="ttdeci">std::uint8_t uint8</div><div class="ttdef"><b>Definition:</b> Types.hpp:42</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a96255907cf1af2c416c7dbe34e96b0d5"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a96255907cf1af2c416c7dbe34e96b0d5">nc::coordinates::Coordinate::operator==</a></div><div class="ttdeci">bool operator==(const Coordinate &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:282</div></div>
<div class="ttc" id="anamespacenc_html_a2c9414f356ae2025a7cde3a192d6d67d"><div class="ttname"><a href="namespacenc.html#a2c9414f356ae2025a7cde3a192d6d67d">nc::dot</a></div><div class="ttdeci">NdArray&lt; dtype &gt; dot(const NdArray&lt; dtype &gt; &amp;inArray1, const NdArray&lt; dtype &gt; &amp;inArray2)</div><div class="ttdef"><b>Definition:</b> dot.hpp:47</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html"><div class="ttname"><a href="classnc_1_1_nd_array.html">nc::NdArray&lt; double &gt;</a></div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_afb451d6e6c10d1f6cacd98bea67850a2"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#afb451d6e6c10d1f6cacd98bea67850a2">nc::coordinates::Coordinate::print</a></div><div class="ttdeci">void print() const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:270</div></div>
<div class="ttc" id="anamespacenc_html_a2cdc1c791ab98eb708ba5662ffb82b39"><div class="ttname"><a href="namespacenc.html#a2cdc1c791ab98eb708ba5662ffb82b39">nc::deg2rad</a></div><div class="ttdeci">constexpr auto deg2rad(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> deg2rad.hpp:49</div></div>
<div class="ttc" id="anamespacenc_html_a736de91eb8f79bfaf4dc92d7161f1c87"><div class="ttname"><a href="namespacenc.html#a736de91eb8f79bfaf4dc92d7161f1c87">nc::cos</a></div><div class="ttdeci">auto cos(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> cos.hpp:51</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a7cf9e8138023ced7cfcb071299018fd5"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a7cf9e8138023ced7cfcb071299018fd5">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate(const RA &amp;inRA, const Dec &amp;inDec) noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:96</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a169974783c87c9bbc89ccb4ea2ea4123"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a169974783c87c9bbc89ccb4ea2ea4123">nc::coordinates::Coordinate::radianSeperation</a></div><div class="ttdeci">double radianSeperation(const Coordinate &amp;inOtherCoordinate) const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:230</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_aa44f94cc8d02a56636223686f30d84f1"><div class="ttname"><a href="classnc_1_1_nd_array.html#aa44f94cc8d02a56636223686f30d84f1">nc::NdArray::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4388</div></div>
<div class="ttc" id="a_nd_array_8hpp_html"><div class="ttname"><a href="_nd_array_8hpp.html">NdArray.hpp</a></div></div>
<div class="ttc" id="anamespacenc_html_a8c8fc041b633785104c583a8ce3d9cef"><div class="ttname"><a href="namespacenc.html#a8c8fc041b633785104c583a8ce3d9cef">nc::rad2deg</a></div><div class="ttdeci">constexpr auto rad2deg(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> rad2deg.hpp:50</div></div>
<div class="ttc" id="adot_8hpp_html"><div class="ttname"><a href="dot_8hpp.html">dot.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a8d139bb6b4d2d315d32d6fa818dab93d"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a8d139bb6b4d2d315d32d6fa818dab93d">nc::coordinates::Coordinate::operator!=</a></div><div class="ttdeci">bool operator!=(const Coordinate &amp;inRhs) const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:294</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a983a167d97af973947f76474ab299ab8"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a983a167d97af973947f76474ab299ab8">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate(double inRaDegrees, double inDecDegrees)</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:64</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a01ff982f40caae2429c20d0ba66e4afc"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a01ff982f40caae2429c20d0ba66e4afc">nc::coordinates::Coordinate::xyz</a></div><div class="ttdeci">NdArray&lt; double &gt; xyz() const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:192</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a055875abbe80163ca91328c0fa8ffbfa"><div class="ttname"><a href="classnc_1_1_nd_array.html#a055875abbe80163ca91328c0fa8ffbfa">nc::NdArray::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:4325</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_dec_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1_dec.html">nc::coordinates::Dec</a></div><div class="ttdoc">Holds a Declination object.</div><div class="ttdef"><b>Definition:</b> Dec.hpp:50</div></div>
<div class="ttc" id="anamespacenc_html_a3fa4e582cdeef0716309ad51378f2983"><div class="ttname"><a href="namespacenc.html#a3fa4e582cdeef0716309ad51378f2983">nc::sin</a></div><div class="ttdeci">auto sin(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sin.hpp:51</div></div>
<div class="ttc" id="aclassnc_1_1_nd_array_html_a22ba05b8e537c008a2143396b5995551"><div class="ttname"><a href="classnc_1_1_nd_array.html#a22ba05b8e537c008a2143396b5995551">nc::NdArray::flatten</a></div><div class="ttdeci">NdArray&lt; dtype &gt; flatten() const</div><div class="ttdef"><b>Definition:</b> NdArrayCore.hpp:2774</div></div>
<div class="ttc" id="anamespacenc_html"><div class="ttname"><a href="namespacenc.html">nc</a></div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:44</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html">nc::coordinates::Coordinate</a></div><div class="ttdoc">Holds a full coordinate object.</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:50</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_aded7d56f04931cfbb07488d45d6bfce5"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#aded7d56f04931cfbb07488d45d6bfce5">nc::coordinates::Coordinate::x</a></div><div class="ttdeci">double x() const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:162</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_r_a_html_a37824a93eb9e0a02237d4e654040761b"><div class="ttname"><a href="classnc_1_1coordinates_1_1_r_a.html#a37824a93eb9e0a02237d4e654040761b">nc::coordinates::RA::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> RA.hpp:145</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a0f541169a4c318a5cf4fd0a50a4c2013"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a0f541169a4c318a5cf4fd0a50a4c2013">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate()=default</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_dec_html_ad2e47ff7298e1b88bb1b77940c241c8f"><div class="ttname"><a href="classnc_1_1coordinates_1_1_dec.html#ad2e47ff7298e1b88bb1b77940c241c8f">nc::coordinates::Dec::degrees</a></div><div class="ttdeci">double degrees() const noexcept</div><div class="ttdef"><b>Definition:</b> Dec.hpp:116</div></div>
<div class="ttc" id="asqr_8hpp_html"><div class="ttname"><a href="sqr_8hpp.html">sqr.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_ae01f4143ae771a0f8bccefc4bba78b86"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#ae01f4143ae771a0f8bccefc4bba78b86">nc::coordinates::Coordinate::radianSeperation</a></div><div class="ttdeci">double radianSeperation(const NdArray&lt; double &gt; &amp;inVector) const</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:243</div></div>
<div class="ttc" id="a_error_8hpp_html_af2aff1172060367b9c5398fa097fa8fd"><div class="ttname"><a href="_error_8hpp.html#af2aff1172060367b9c5398fa097fa8fd">THROW_INVALID_ARGUMENT_ERROR</a></div><div class="ttdeci">#define THROW_INVALID_ARGUMENT_ERROR(msg)</div><div class="ttdef"><b>Definition:</b> Error.hpp:36</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_r_a_html_aaf73bcb5e2afd0e075c452148f67a3bd"><div class="ttname"><a href="classnc_1_1coordinates_1_1_r_a.html#aaf73bcb5e2afd0e075c452148f67a3bd">nc::coordinates::RA::degrees</a></div><div class="ttdeci">double degrees() const noexcept</div><div class="ttdef"><b>Definition:</b> RA.hpp:105</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a35b32fa280c920d0b528472f7726a03d"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a35b32fa280c920d0b528472f7726a03d">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate(const NdArray&lt; double &gt; &amp;inCartesianVector)</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:123</div></div>
<div class="ttc" id="arad2deg_8hpp_html"><div class="ttname"><a href="rad2deg_8hpp.html">rad2deg.hpp</a></div></div>
<div class="ttc" id="a_r_a_8hpp_html"><div class="ttname"><a href="_r_a_8hpp.html">RA.hpp</a></div></div>
<div class="ttc" id="anamespacenc_1_1utils_html_ae792e10a24b7e5b8291a6c31a28a4512"><div class="ttname"><a href="namespacenc_1_1utils.html#ae792e10a24b7e5b8291a6c31a28a4512">nc::utils::sqr</a></div><div class="ttdeci">constexpr dtype sqr(dtype inValue) noexcept</div><div class="ttdef"><b>Definition:</b> sqr.hpp:44</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_dec_html_a91ddbec1fadfdcc049930dc439da4608"><div class="ttname"><a href="classnc_1_1coordinates_1_1_dec.html#a91ddbec1fadfdcc049930dc439da4608">nc::coordinates::Dec::str</a></div><div class="ttdeci">std::string str() const</div><div class="ttdef"><b>Definition:</b> Dec.hpp:166</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a68eafc66dfeb8551fa7d8960f116be83"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a68eafc66dfeb8551fa7d8960f116be83">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate(uint8 inRaHours, uint8 inRaMinutes, double inRaSeconds, Sign inSign, uint8 inDecDegreesWhole, uint8 inDecMinutes, double inDecSeconds)</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:82</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_a21614cb1e2513d0d8cb553ccb035986e"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#a21614cb1e2513d0d8cb553ccb035986e">nc::coordinates::Coordinate::z</a></div><div class="ttdeci">double z() const noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:182</div></div>
<div class="ttc" id="a_types_8hpp_html"><div class="ttname"><a href="_types_8hpp.html">Types.hpp</a></div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_aa9e34ee6b7a8425e6af5a715935a4251"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#aa9e34ee6b7a8425e6af5a715935a4251">nc::coordinates::Coordinate::operator&lt;&lt;</a></div><div class="ttdeci">friend std::ostream &amp; operator&lt;&lt;(std::ostream &amp;inStream, const Coordinate &amp;inCoord)</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:307</div></div>
<div class="ttc" id="aclassnc_1_1coordinates_1_1_coordinate_html_aa023b8b0e74159909e99aabcf778c57f"><div class="ttname"><a href="classnc_1_1coordinates_1_1_coordinate.html#aa023b8b0e74159909e99aabcf778c57f">nc::coordinates::Coordinate::Coordinate</a></div><div class="ttdeci">Coordinate(double inX, double inY, double inZ) noexcept</div><div class="ttdef"><b>Definition:</b> Coordinate.hpp:110</div></div>
<div class="ttc" id="anamespacenc_1_1coordinates_html_a07a05f0462e5f74f05cbd04664c4ca94"><div class="ttname"><a href="namespacenc_1_1coordinates.html#a07a05f0462e5f74f05cbd04664c4ca94">nc::coordinates::Sign</a></div><div class="ttdeci">Sign</div><div class="ttdoc">Struct Enum for positive or negative Dec angle.</div><div class="ttdef"><b>Definition:</b> Dec.hpp:46</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_34171bd951b13a53aa9f237277a18e40.html">NumCpp</a></li><li class="navelem"><a class="el" href="dir_821f0d92e31f34ac47de77ab611d6024.html">Coordinates</a></li><li class="navelem"><a class="el" href="_coordinate_8hpp.html">Coordinate.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
